package com.netsdk.web.controller;

import com.netsdk.web.mq.producer.DataProducer;
import com.netsdk.web.mq.producer.SmsProducer;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @Author aqie
 * @Date 2022/3/26 11:02
 * @desc
 */
@RequestMapping("mq")
@RestController
@AllArgsConstructor
public class MqController {

    private final DataProducer dataProducer;
    private final SmsProducer smsProducer;


    @GetMapping("test")
    public void test() {
        dataProducer.sendDeptRefreshMessage();
        smsProducer.sendSmsSendMessage(1L, "13207145531",1L,"1", new ArrayList<>());
    }
}
